package business.other.punish.impl;

import business.other.punish.FirePunishInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.proxy.Factory;
import org.springframework.stereotype.Service;
import other.domain.FirePunishInfo;
import other.domain.FirePunishInfoCriteria;
import other.mapper.FirePunishInfoMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "firePunishService")
public class FirePunishInfoServiceImpl implements FirePunishInfoService{
    @Autowired
    FirePunishInfoMapper firePunishInfoMapper;
    @Override
    public List<FirePunishInfo> getFirePunishInfo() {
        FirePunishInfoCriteria criteria =new FirePunishInfoCriteria();
        criteria.createCriteria().getAllCriteria();
        return firePunishInfoMapper.selectByExample(criteria);
    }
}
